package xyz.weblade.test.bean;

import java.util.HashMap;
import java.util.Map;

public class UserDao {
    private static Map<String,String> hasMap = new HashMap<>();

    public void initDataMethod(){
        System.out.println("执行：init-method");
        hasMap.put("10001","陈奕迅");
        hasMap.put("10002","EXO");
        hasMap.put("10003","迈克尔杰克逊");
    }

    public void destroyDataMethod(){
        System.out.println("执行：destroy-method");
        hasMap.clear();
    }

   public String queryUserName(String uId){
       return hasMap.get(uId);
   }
}
